package com.example.system.service;

import com.example.common.core.Result;
import com.example.system.dto.AdminParam;
import org.springframework.web.multipart.MultipartFile;

import java.io.IOException;
import java.util.List;

public interface AdminService {
    Result add(AdminParam adminParam);

    Result delete(Integer id);

    Result deleteBatch(List<Integer> ids);

    Result update(AdminParam adminParam);

    Result select(Integer id);

    Result selectList(Integer page, Integer size);

    Result uploadAvatar(MultipartFile avatar, Integer id) throws IOException;
}
